import { createRouter,createWebHashHistory,RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
    {
        path:"/",
        name:"home",
        component:()=> import('@/views/home/Home.vue'),
        redirect:"index",
        children:[
            {
                path:"index",
                name:"index",
                component:()=> import('@/views/index/Index.vue'),
            },
            {
                path:"test",
                name:"test",
                component:()=> import('@/views/index/test.vue'),
            },
            {
                path:"movie",
                name:"movie",
                component:()=> import("@/views/movie/Movie.vue"),
            },
            {
                path:"cinma",
                name:"cinma",
                component:()=> import("@/views/cinma/Cinma.vue"),
            },
            {
                path:"info",
                name:"info",
                component:()=> import("@/views/movie/MovieInfo.vue"),
            },
        ],
    },
    {
        path:"/login",
        name:"login",
        component:()=> import('@/views/login/Login.vue'),
    }
  
       
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
export default router;